package com.example.hssmgs.Student;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.example.hssmgs.MainActivity;
import androidx.annotation.Nullable;

import com.example.hssmgs.R;

public class new_info extends Activity {
    private Button revise_bt;
    private Button back_bt;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.new_info);

        InitView();


        revise_bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast toast=Toast.makeText(getApplicationContext(),"修改成功",Toast.LENGTH_SHORT);
                toast.show();
                //finish();
            }
        });

        back_bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(new_info.this,Student_login.class);
                startActivity(intent);
            }
        });
    }

    private void InitView() {
        revise_bt=findViewById(R.id.revise_bt);
        back_bt=findViewById(R.id.back_bt);

    }
}
